package org.neusoft.auth.controller;


import org.neusoft.auth.entity.Sysfun;
import org.neusoft.auth.service.SysfunService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sf")
public class SysfunController {
    @Autowired
    SysfunService service;

    @RequestMapping("/get/tree")
    public Sysfun getTree(  ){
        String logid  = "ttc";
        Sysfun sysfun =  service.getSysfunTreeByLogid(logid);
        return  sysfun;
    }
}
